package com.woniu.backstage.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.backstage.entity.TbBanned;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.io.Serializable;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author spirit
 * @since 2020-04-17
 */
public interface TbBannedMapper extends BaseMapper<TbBanned> {
    @Select("select * from tb_banned where user_id=#{id}")
    TbBanned getBanned(@Param("id") Serializable id);

    @Delete("delete from tb_banned where user_id=#{id}")
    Integer deleteBanned(@Param("id") Serializable id);
}
